package com.bis.ymyy.mapper;

import com.bis.ymyy.common.utils.AddUserInfo;
import com.bis.ymyy.entity.Doctor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DoctorMapper {
    List<Doctor> getAll();
    Doctor findById(int id);
    int modifyById(Doctor doctor);
    int deleteById(int id);
    Doctor login(String userName, String password);
    int addDoctor(String userName, String password);
    int addBaseDoctor(AddUserInfo userInfo);
    Doctor findByUserName(String userName);
}
